﻿
namespace Patterns4Net.Tests.Core.CecilExtensions
{
    using NUnit.Framework;
    using Patterns4Net.Core.CecilExtensions;

    [TestFixture]
    public class MemberExtensionsTest
    {
        [Test]
        public void MemberExtensionsTest_Has_TestFixture_Attribute()
        {
            var typeDef = typeof(MemberExtensionsTest).GetTypeDefinition();
            Assert.IsTrue(MemberExtensions.HasAttribute<TestFixtureAttribute>(typeDef));
        }

        [Test]
        public void MemberExtensionsTest_Has_Not_Test_Attribute()
        {
            var typeDef = typeof(MemberExtensionsTest).GetTypeDefinition();
            Assert.IsFalse(MemberExtensions.HasAttribute<TestAttribute>(typeDef));
        }
    }
}
